package com.copa.module.goods.mapper;

import com.copa.module.goods.domain.entity.GoodsAttributeEntity;
import com.copa.module.goods.domain.vo.GoodsAttributeVo;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author copa
 * @createDate 2021-01-08
 * @function t_goods_attribute表 Mapper 接口
 */
@Mapper
public interface GoodsAttributeDao extends BaseMapper<GoodsAttributeEntity> {

    Boolean insertGoodsAttributeVoList(@Param("goodsAttributeVo") List<GoodsAttributeVo> goodsAttributeVo,
                                       @Param("goodsId") Long goodsId);

    List<GoodsAttributeEntity> findGoodsAttributeByGoodsId(@Param("goodsId") Long goodsId);

    Boolean deleteIds(@Param("attributeIds") List<Long> attributeIds);
}
